﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace blackhouse.WebNemo.Web.Controls {
	public class LinkToPrev : HyperLink {

		protected override void OnLoad(EventArgs e) {
			base.OnLoad(e);

			string refurl = HttpContext.Current.Request["refferUrl"];
			if (!string.IsNullOrEmpty(refurl)) {
				this.NavigateUrl = HttpUtility.UrlDecode(refurl);
			}
			else {
				this.Visible = false;
			}
		}

	}
}